package com.newcoder.huawei;

/**
 * 位运算
 */
public class BitOperation {

    public static void main(String[] args) {
        // 十进制转二进制
        int number = 5;
        String str = "";
        while(number != 0){
            int i = number % 2;
            str = i + str;
            number = number / 2;
        }
        System.out.println(str);
    }

}
